how to get number of cores in python

45

how to get number of cores in python -

import multiprocessing

multiprocessing.cpu_count() # or os.cpu_count()

Comments

Submit
0 Comments